package com.vrv.app.cyberspace.modules.sys.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author sm
 * @since 2017-12-15
 */
@TableName("ROLE_TABLE")
public class RoleTable extends Model<RoleTable> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @NotBlank(message="name不能为空")
    private String name;
    @NotBlank(message="roleRank不能为空")
    private String roleRank;
    @NotBlank(message="roleType不能为空")
    private String roleType;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRoleRank() {
        return roleRank;
    }

    public void setRoleRank(String roleRank) {
        this.roleRank = roleRank;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RoleTable{" +
                ", id=" + id +
                ", name=" + name +
                ", roleRank=" + roleRank +
                ", roleType=" + roleType +
                "}";
    }
}
